package first;

public class test1 {
    public static void main(String[] args) {
        MobileShop mobileShop = new MobileShop(30);
        mobileShop.getAmount();

        MobileShop.InnerPurchaseMoney money1 = mobileShop.new InnerPurchaseMoney(20000);
        mobileShop.buyPhone(money1);
        MobileShop.InnerPurchaseMoney money2 = mobileShop.new InnerPurchaseMoney(10000);
        mobileShop.buyPhone(money2);

        mobileShop.getAmount();
    }
}
